package com.sxyc.tintin.model;

import com.jfinal.plugin.activerecord.Model;

public class WxConfig  extends Model<WxConfig>{
	
	public static final WxConfig dao = new WxConfig();
	
	// 使用jFinal 日志
	private com.jfinal.log.Log log = com.jfinal.log.Log.getLog(this.getClass());

	public WxConfig getWxConfigByServiceId(String serviceId){
		return WxConfig.dao.findFirst("select * from Wx_Config where serviceId = ? and status = 1 ", new Object[] { serviceId });
	}
	
	public WxConfig getWxConfigByAppId(String appId){
		return WxConfig.dao.findFirst("select * from Wx_Config where appId = ? and status = 1 ", new Object[] { appId });
	}
	
}
